#include <stdio.h>

int fact(int n)
{
	if (n <= 2)
		return 1;
	else
		return fact(n - 1) + fact(n - 2);
}


int main()
{
	int n = 0;
	scanf_s("%d", &n);
	int sum = fact(n);
	printf("%d", sum);

}